home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9778 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: yama.mcc.ac.uk!usenet
  2. From: Suresh Kannan <suresh@roja.demon.co.uk>
  3. Newsgroups: comp.lang.c++
  4. Subject: FORTRAN Array declaration and C++
  5. Date: 4 Mar 1996 13:52:27 GMT
  6. Organization: Manchester University
  7. Message-ID: <4hesir$2ks@yama.mcc.ac.uk>
  8. NNTP-Posting-Host: pcc70.li.man.ac.uk
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
  13.  
  14. Hi, 
  15.  
  16. I as an aero engineer seem to have had Fortran hardwired into my 
  17. brain over the last 3 years of study.  I am primarily like to 
  18. program in C++ and now the new Java.  
  19.  
  20. I have found that the array declaration in Fortran is more 
  21. convenient because you can do something like REAL A(-10:10), so 
  22. the subscripts run from -10 to 10, but you can only start from 0 
  23. in C/C++.  This is pain in the butt because this more flexibility 
  24. in subscripting is required in generating Finite Difference grids 
  25. of aerodynamic analysis.
  26.  
  27. I know that I could define a matrix/array class and constructur 
  28. to take care of subscripting but is there any standard way that 
  29. you boys/gals do it ??
  30.  
  31.  
  32.  
  33. regards,
  34. suresh.
  35.  
  36.